
package com.xy.dao;


import com.xy.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserDao  {
    /**
     *增
     * @param user
     * @return
     */
    int addUser(@Param("user") User user);

    /**
     *删
     * @param userid
     * @return
     */
    int delUser(@Param("userid") Integer userid);

    /**
     * 查
     * @param username
     * @return
     */
    User getUserByName(@Param("username") String username);


}
